package io;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

/**
 * @Author @fiber-cloud
 * @Date 2025/10/8 9:21
 */
public class IODemo10 {
    public static void main(String[] args) {
        try(InputStream inputStream = new FileInputStream("d:test.txt")){
            Scanner scanner = new Scanner(inputStream);
            //此时读取的内容就是从 文件 进行读取了
            scanner.next();

        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
